import { actionTaskUser } from '@/api/flow/work';

export default {
  methods: {
    // Action 提交
    submitAction(action, actionData) {
      return new Promise((resolve, reject) => {
        actionTaskUser(this.tid, action, actionData)
          .then(async ({ status, message }) => {
            resolve({ status, message });
          })
          .catch((err) => {
            reject(err);
          })
          .finally(() => {});
      });
    }
  }
};
